package net.towee.model.account;

import java.util.Date;

import net.towee.model.group.GroupIdentity;

import com.google.gwt.user.client.rpc.IsSerializable;


/**
 * This interface define structure of data, that stores in user account when he enter to some group.
 * @author  c58
 */
public interface AccountGroup extends IsSerializable  {
	/**
	 * @return   role of user in some group
	 */
	Role getRole();
	
	/**
	 * @return  id of group
	 */
	GroupIdentity getGroupIdentity();
	
	/**
	 * @return  date when user enter to group
	 */
	Date getEnterDate();

	/**
	 * Set role for account
	 * @param role
	 */
	void setRole(Role role);
}
